package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class Department {

    /** */
    private Long id;

    /** */
    private String name;

    /** */
    private String sn;

    public String getJson(){
        Map<String,Object> data = new HashMap<>();
        data.put("id",id);
        data.put("name",name);
        data.put("sn",sn);
        return JSON.toJSONString(data);
    }
}